import { ref, computed } from 'vue'

export default function HelloWorldCompListFilter(list: any) {
  const searchQuery = ref('')
  const matchingList = computed(() => {
    return list.value.filter((l: number) => l % +searchQuery.value === 0)
  })

  return {
    searchQuery,
    matchingList
  }
}